package com.loveshes.service;

import com.loveshes.UserApi;
import com.loveshes.dto.User;
import com.loveshes.dao.UserDao;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author wangz4
 * @date 2024/12/26 11:43
 */
@DubboService
public class UserApiImpl implements UserApi {
    
    @Autowired
    private UserDao userDao;
    
    @Override
    public User find(String name) {
        return userDao.find(name);
    }
}
